package cn.cuilan.entity;

import cn.cuilan.base.BaseEntity;

import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 用户基础表
 *
 * @author zhang.yan
 */
@Entity
public class User extends BaseEntity<Long> implements Serializable {

    private String userName; // 用户名

    private String nickName; // 昵称

    private String loginPhone; // 手机用户登录账号

    private String loginMail; // 邮箱用户登录账号

    private String password; // 用户密码

    private String userLogo; // 用户头像

    private String address; // 用户详细地址

    private int countryId; // 用户所属国家，关联国家表主键

    private int provinceId; // 用户所属省份，关联省份表主键

    private int areaId; // 用户所属地区，关联地区表主键

    private int cityId; // 用户所属城市，关联城市表主键

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getLoginPhone() {
        return loginPhone;
    }

    public void setLoginPhone(String loginPhone) {
        this.loginPhone = loginPhone;
    }

    public String getLoginMail() {
        return loginMail;
    }

    public void setLoginMail(String loginMail) {
        this.loginMail = loginMail;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserLogo() {
        return userLogo;
    }

    public void setUserLogo(String userLogo) {
        this.userLogo = userLogo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getCountryId() {
        return countryId;
    }

    public void setCountryId(int countryId) {
        this.countryId = countryId;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public User() {
    }

    public User(String userName, String nickName,
                String loginPhone,
                String loginMail,
                String password,
                String userLogo,
                String address,
                int countryId,
                int provinceId,
                int areaId,
                int cityId) {
        this.userName = userName;
        this.nickName = nickName;
        this.loginPhone = loginPhone;
        this.loginMail = loginMail;
        this.password = password;
        this.userLogo = userLogo;
        this.address = address;
        this.countryId = countryId;
        this.provinceId = provinceId;
        this.areaId = areaId;
        this.cityId = cityId;
    }

}
